window.onload = function() {
  var oul = document.querySelector('ul')
  oul.onclick=function(e) {
    var e = e || window.event
    target = e.target || e.srcElement
    if(target.nodeName.toLowerCase() === 'li'){
      console.log(target.innerHTML)
    }
  }
  var oli = document.createElement('li')
  oli.innerHTML = 'eeee'
  oul.appendChild(oli)
}